import request from '@/utils/request'

// 查询薪资记录列表
export function listSalaryRecord(query) {
  return request({
    url: '/system/salaryRecord/list',
    method: 'get',
    params: query
  })
}

// 查询薪资记录详细
export function getSalaryRecord(id) {
  return request({
    url: '/system/salaryRecord/' + id,
    method: 'get'
  })
}

// 新增薪资记录
export function addSalaryRecord(data) {
  return request({
    url: '/system/salaryRecord',
    method: 'post',
    data: data
  })
}

// 修改薪资记录
export function updateSalaryRecord(data) {
  return request({
    url: '/system/salaryRecord',
    method: 'put',
    data: data
  })
}

// 删除薪资记录
export function delSalaryRecord(id) {
  return request({
    url: '/system/salaryRecord/' + id,
    method: 'delete'
  })
}
